#!/bin/bash
###
 # @Author: chengjiang
 # @Date: 2025-04-24 09:34:32
 # @Description: 运行脚本
###
IMAGE_NAME=inoutweb

echo "stop"

docker stop ${IMAGE_NAME}

echo "rm container"

docker rm ${IMAGE_NAME}

echo "rmi"

docker rmi ${IMAGE_NAME}

echo "tar -xvf the file"

tar xvf ${IMAGE_NAME}.tar.gz

echo "load -i"

docker load -i ${IMAGE_NAME}.tar

echo "run"

echo "now you can run it as follow: "
echo "docker run -d --restart always -p 5666:5666 --name ${IMAGE_NAME} ${IAMGE_NAME}"

echo "sucess"
